//
//  YHApp+YH.m
//  YHAPP_Example
//
//  Created by 98du on 2021/11/22.
//  Copyright © 2021 林宁宁. All rights reserved.
//

#import "YHApp+YH.h"
#import <objc/runtime.h>

@implementation YHApp (YH)

@dynamic config;

-(id<UIApplicationDelegate>)appDelegte{
    return [UIApplication sharedApplication].delegate;
}

-(YHAPPConfig *)config{
    YHAPPConfig * c = objc_getAssociatedObject(self, @selector(config));
    if(!c){
        c = [YHAPPConfig new];
        objc_setAssociatedObject(self, @selector(config), c, OBJC_ASSOCIATION_RETAIN);
    }
    return c;
}

@end
